{% extends 'base.html' %}
{% block title %}
    博客列表页
{% endblock %}
{% block body %}
    <h1>文章列表</h1>
    <table>
        <tr>
            <th>标题</th>
            <th>操作</th>
        </tr>
    {% for b in b_list %}
        <tr>
            <td><a href="{% url 'detail' b.id %}">{{b.title}}</a>></td>
            <td>
                <a href="{% url 'update' b.id %}">编辑</a>
            </td>
            <td> <a href="{% url 'delete' b.id %}">删除</a></td>
        </tr>
    {% endfor %}

    </table>
    <br>
    <a href="{% url 'index' %}">返回首页</a>
{% endblock %}